package com.soft.javase.ch02.test02;

/**
 * @author wangzhisen
 * @Desc TODO
 * @date 2025/4/18
 *
 * 3、创建ClassMain类，定义main()方法，构造GrandFather类的对象和Father类的对象，并分别显示详细信息
 */
public class ClassMain {
    public static void main(String[] args) {
        GrandFather grandFather = new GrandFather("汪卫国",75);
        grandFather.getGrandFather();

        System.out.println();

        Father father = new Father("汪建国",45,"程序猿");
        father.getFather();
    }
}
